package project.Service;


import project.Pojo.Chat.AI.ChatRecord;
import project.Pojo.Chat.ChatRoom;
import project.Pojo.Chat.ChatRoomUser;
import project.Pojo.RequestJsonPojo.Message;
import project.Pojo.Result;

import java.util.List;

public interface ChatService {

    Result<String> callAi(Message message);

    void insertAiRecord(ChatRecord chatRecord);

    List<ChatRecord> getRecordByUserId(String userId);

    void insertRoom(String name, String admin);

    int selectRoomId(String name);

    void insertRoomUser(String admin, int id);

    void deleteRoom(int id);

    List<ChatRoom> selectRoomById(int id);

    void deleteRoomUser(int roomId, String username);

    ChatRoomUser selectRoomUserByRoomIdAndUsername(int roomId, String username);
}
